package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

/**
 * @Description 用户操作记录
 *
 * @Version 1.0
 * 
 */
@Getter
public enum  UserOperateRecordEnums {
    CASH_SCORE("扣积分"),
    GET_SCORE("加积分"),
    NEW_USER("首单积分"),
    RETURN_CASH("购物返现"),
    LOGIN_GIVE("登录赠送");
    String aspect;
    UserOperateRecordEnums(String aspect){
        this.aspect = aspect;
    }

    public static String getAspectRecord(String name) {
        for (UserOperateRecordEnums userOperateRecordEnums : UserOperateRecordEnums.values()) {
            if (userOperateRecordEnums.name().equals(name)) {
                return userOperateRecordEnums.getAspect();
            }
        }
        return null;
    }
}
